package com.ruoyi.commodity.mapper;

import com.ruoyi.commodity.domain.Commodity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 谷子毅
 * @date 2023/7/4
 */

@Repository
public interface CommodityMapper {

    Commodity checkCommodityNameUnique(String name);

    int insertCommodity(Commodity commodity);

    List<Commodity> selectCommodityList(Commodity commodity);
}
